#include "udp_client.hpp"


void Direction(char str[]){
  std::cout<<"Please Enter #"<<str<<" server_ip server_port"<<std::endl;
}
//命令行式输入端口号和ip
int main(int argc, char *argv[]){
  if(argc != 3){
    Direction(argv[0]);
    exit(USAGE_ERR);
  }
  udpClient *c =new udpClient(argv[1], atoi(argv[2]));
  c->InitClient();
  c->Start();

  return 0;
}
